﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Android_Helper.python
{
    class ExcelTitleToMap
    {
        public static string DictionaryToMap(Dictionary<int, string> dirs) {
            StringBuilder stringBuilder = new StringBuilder();
            stringBuilder.AppendLine("colMap = {");
            foreach (var item in dirs)
            {
                stringBuilder.AppendLine(string.Format("'{0}': {1}, # {0}", item.Value, item.Key + 1));
            }
            stringBuilder.AppendLine("}");
            return stringBuilder.ToString();
        }
    }
}
